package xcu.lxj.nettychat.user.domain.vo.response.ws;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import xcu.lxj.nettychat.user.domain.enums.ChatActiveStatusEnum;

import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class WSMemberChange {

    public static final Integer CHANGE_TYPE_ADD = 1;
    public static final Integer CHANGE_TYPE_REMOVE = 2;

    @Schema(description = "群组id",requiredMode = Schema.RequiredMode.REQUIRED)
    private Long roomId;
    @Schema(description = "变动uid集合",requiredMode = Schema.RequiredMode.REQUIRED)
    private Long uid;
    @Schema(description = "变动类型 1加入群组 2移除群组",requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer changeType;
    /**
     *
     * @see ChatActiveStatusEnum
     */
    @Schema(description = "在线状态 1在线 2离线",requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer activeStatus;
    @Schema(description = "最后一次上下线时间",requiredMode = Schema.RequiredMode.REQUIRED)
    private Date lastOptTime;
}

